'''
data = '/api/v1/:topicid/replies'
data_value = '2345678'
url_list = data.split('/')
counter = 0
for i in url_list:
    if ':' in i:
        url_list[counter] = '/'+data_value
        counter += 1
    elif url_list[counter] == '':
        counter += 1
        continue
    else:
        url_list[counter] = '/'+url_list[counter]
        counter += 1
        continue
a_str = ''.join(url_list)

print(str(a_str))
'''
list_a = [2,3,5,1,87,12,85]

print(list_a[-1])